package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.InventoryCriteria;
import com.leo.ibatis.demo.domain.Inventory;

public interface InventoryDao {

	void insert(Inventory inventory) throws DataAccessException;

	int update(Inventory inventory) throws DataAccessException;

	int delete(String itemid) throws DataAccessException;

	Inventory select(String itemid) throws DataAccessException;

	List<Inventory> list(InventoryCriteria inventoryCriteria) throws DataAccessException;
	
	List<Inventory> listOnPage(InventoryCriteria inventoryCriteria) throws DataAccessException;
	
	int count(InventoryCriteria inventoryCriteria) throws DataAccessException;

}
